Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
How to update global custom user properties in Google Analytics 4 [GA4]?

With Google Analytics 4 [GA4] it's possible to add custom user properties to each event.

  1. Optional: Add any custom user properties that you'd like to configure in User Properties.

This is explained further in [GA4] About event parameters.

Now, this code works fine and the value of test is appended to the initial page_view and other following events:

gtag('config', 'G-1234567890', {
  test: false
});

Our site is a single page application (SPA) and at some point we want to update the parameter test.

The mentioned docs and also the Global site tag API reference set say, these parameters can be updated at any time. I found these two versions:

gtag('set', 'user_properties', {test: true});
gtag('set', {test: true});

Unfortunately, both won't work. I can get the updated parameter successfully using get:

gtag('get', 'G-1234567890', 'test', (test) => {
  console.log(test); // true
});

But the value is never updated for any subsequent request to Google Analytics and test: false is tracked all the time.

What are we doing wrong?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda